<?php
  
  require "../../system/framework.php";  
  
  $table = trim($_REQUEST['table']);
  
  $scaffolding = false;
  if (isset($_REQUEST['scaffolding'])) {
      $scaffolding = true;
  }
  
  //xml_config::createTable($table);
  
    $xmlDatabase = new xml_database();
  $xmlDatabase->baseDir = false;
  $xmlDatabase->xmlFilename = config::$projectPath."/db/db.xml";
  
  $xmlDatabase->createTable($table, $scaffolding);
  
  
  //echo $table;
  $xmlDatabase->writeXmlDatabaseFile();   
  
  
  http::redirect("[php_property:redirect]");  
  
  
?>
